import {action, observable, runInAction} from "mobx";
import {BaseResInterface, BaseResInterfaceWithData, sendGetRequest} from "../../../net";
import {wechatInstallCheck} from "../../../component/common/WechatProxy";


interface Config {
}

export class ConfigStore {
    @observable installedWeChat:boolean = false;
    @observable MineNavBarOpacity:number = 0;

    @action.bound
    async checkInstalledWeChat(){
        const installed = await wechatInstallCheck();
        runInAction(()=>{
            this.installedWeChat = installed;
        })
    }

    @action.bound
    async changeMineNavBar(opacity:number){
        runInAction(()=>{
            this.MineNavBarOpacity = opacity;
        })
    }
}

const ConfigStoreInstance = new ConfigStore();
export default ConfigStoreInstance